namespace RRKAutohaus.Core.Migrations
{
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<RRKAutohaus.Core.EntityFramework.RRKAutohausDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
        }

        protected override void Seed(RRKAutohaus.Core.EntityFramework.RRKAutohausDbContext context)
        {
            //if (!Roles.RoleExists("Admin"))
            //{
            //    Roles.CreateRole("Admin");
            //}

            //if (Membership.GetUser("test", false) == null)
            //{
            //    Membership.CreateUser("test", "@rMand01");
            //}

            //if (!Roles.GetRolesForUser("test").Contains("Admin"))
            //{
            //    Roles.AddUsersToRoles(new[] { "test" }, new[] { "Admin" });
            //}

        }
    }
}
